<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // php artisan make:seeder TopicTableSeeder
        // maker:seeder之后,需要用 composer dump-autoload 生成 classMap实现无命名空间加载
        $this->call(PostTableSeeder::class);
        $this->call(TopicTableSeeder::class);
        $this->call(AdminUserTableSeeder::class);
        $this->call(AdminPermissionSeeder::class);
    }
}
